package com.cskaoyan.bean.vo;

import com.cskaoyan.utils.OrderStatusUtil;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author break_a_leg
 * @description
 * @date 2021年10月22日 22:47
 */
@NoArgsConstructor
public class WxOrderInfoInOrderDetailVo {

    private String consignee;
    private String address;
    private Date addTime;
    private String orderSn;
    private BigDecimal actualPrice;
    private String mobile;
    private String message;
    private Short orderStatus;

    public void setOrderStatus(Short orderStatus) {
        setOrderStatusText(OrderStatusUtil.getOrderStatusText(orderStatus));
    }

    private String orderStatusText;
    private Short aftersaleStatus;
    private BigDecimal goodsPrice;
    private BigDecimal couponPrice;
    private Integer id;
    private BigDecimal freightPrice;
    private WxHandleOption handleOption;

    public WxOrderInfoInOrderDetailVo(String consignee, String address, Date addTime, String orderSn, BigDecimal actualPrice, String mobile, String message, Short aftersaleStatus, BigDecimal goodsPrice, BigDecimal couponPrice, Integer id, BigDecimal freightPrice) {
        this.consignee = consignee;
        this.address = address;
        this.addTime = addTime;
        this.orderSn = orderSn;
        this.actualPrice = actualPrice;
        this.mobile = mobile;
        this.message = message;
        this.aftersaleStatus = aftersaleStatus;
        this.goodsPrice = goodsPrice;
        this.couponPrice = couponPrice;
        this.id = id;
        this.freightPrice = freightPrice;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public BigDecimal getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(BigDecimal actualPrice) {
        this.actualPrice = actualPrice;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getOrderStatusText() {
        return orderStatusText;
    }

    public void setOrderStatusText(String orderStatusText) {
        this.orderStatusText = orderStatusText;
    }

    public Short getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Short aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(BigDecimal freightPrice) {
        this.freightPrice = freightPrice;
    }

    public WxHandleOption getHandleOption() {
        return handleOption;
    }

    public void setHandleOption(WxHandleOption handleOption) {
        this.handleOption = handleOption;
    }
}
